
package com.yanboo.logging.domain;

import com.yanboo.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 邮件配置类，数据存覆盖式存入数据存
 */
@Entity
@Data
@Table(name = "tool_email_config")
public class EmailConfig extends BaseEntity implements Serializable {


    @NotBlank
    @Schema(description = "邮件服务器SMTP地址")
    private String host;

    @NotBlank
    @Schema(description = "邮件服务器 SMTP 端口")
    private String port;

    @NotBlank
    @Schema(description = "发件者用户名")
    @Column(name = "[user]")
    private String user;

    @NotBlank
    @Schema(description = "密码")
    private String pass;

    @NotBlank
    @Schema(description = "收件人")
    private String fromUser;
}
